<template>
  <div class="not-found">
    <h1>404</h1>
    <h2>页面不存在</h2>
    <p>您访问的页面不存在，请检查URL或返回首页。</p>
    <el-button type="primary" @click="goHome">返回首页</el-button>
  </div>
</template>

<script>
import { useRouter } from 'vue-router';

export default {
  setup() {
    const router = useRouter();
    
    const goHome = () => {
      router.push('/');
    };
    
    return { goHome };
  }
};
</script>

<style scoped>
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 70vh;
  text-align: center;
}

h1 {
  font-size: 6rem;
  margin: 0;
  color: #409EFF;
}

h2 {
  font-size: 2rem;
  margin: 0.5rem 0;
}

p {
  margin: 1rem 0 2rem;
}
</style>
